package com.ruoyi.web.core.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class Web extends WebMvcConfigurationSupport {

    @Autowired
    private Douyin douyin;

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(douyin)
                .addPathPatterns("/douyin/**", "/monitorVideo/**", "/fans/**", "/video/**", "/order/**", "/goods/excel/**");
    }
}
